package andycpp;

public class number {
		int numerator;    
		int denominator; 
	    number(int a,int b){
	    	this.denominator=b;
	    	this.numerator=a;
	    }
	    number(){
	    	
	    }
		public void setNumeratorAndDenominator() {
			this.denominator=(int)(Math.random()*10) +1;
			this.numerator=(int)(Math.random()*10)%this.denominator;
		}
		public void setNumerator(){
			this.numerator=(int)(Math.random()*10);
		}
	}
